import request from '@/utils/request'

export function getBlockList(query) {
  return request({
    url: '/pagination/block/getList',
    method: 'post',
    data: query
  })
}

export function getBlockDetail(id) {
  return request({
    url: '/pagination/block/getDetail',
    method: 'post',
    data: id
  })
}

export function saveBlock(id) {
  return request({
    url: '/pagination/block/save',
    method: 'post',
    data: id
  })
}

export function removeBlockByID(id) {
  return request({
    url: '/pagination/block/remove',
    method: 'post',
    data: id
  })
}

export function changeBlockStatusByID(id) {
  return request({
    url: '/pagination/block/change-status',
    method: 'post',
    data: id
  })
}

export function getBlockAvabile() {
  return request({
    url: '/pagination/block/getAvailable',
    method: 'post'
  })
}

